var chkOOHScreens = [
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
];

var chkBillsTickets = [
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
];

var chkInnovative = [
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkAmbient = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkOnline = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkTransit = [
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
];

var chkSampling = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
];


var chkMobile = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkDatabaseMktg = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Just Dial Advert", "ID": "5169982805847210392" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
];

var chkAudio = [
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
];


var chkTVCinema = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
];

var chkMagazines = [
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
];


var chkInduceTrials = [
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Just Dial Advert", "ID": "5169982805847210392" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkBranding = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];


var chkPhysicalSampling = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
];


var chkRich = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
];

var chkMiddleClass = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkUpperClass = [
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
];



var chkUpperMiddleClass = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];


var chkLowerClass = [
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
];



var chkLowReach = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "Just Dial Advert", "ID": "5169982805847210392" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
];



var chkMediumReach = [
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];


var chkHighReach = [
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
];


var All = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Just Dial Advert", "ID": "5169982805847210392" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];


var chkStudents = [
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
];


var chkFemale = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
];


var chkMale = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
];


var chkProfessionals = [
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
];

var chkHouseWives = [
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
];

var chkAdults = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Bus announcement", "ID": "9068732128416932596" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Imperia HDFC Magazine", "ID": "8690640654025761436" },
{ "MediaName": "Credai Times Magazine", "ID": "8639641291054539115" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Hospitals", "ID": "8504948793000615527" },
{ "MediaName": "In-cab interactive", "ID": "8417938472052203716" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Golf Course", "ID": "7835573276901525541" },
{ "MediaName": "Sampling", "ID": "7627553523397770543" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Vanitha Malayalam", "ID": "7345139529070459734" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Hair Magazine", "ID": "7258932577640300821" },
{ "MediaName": "Sky Adv", "ID": "7170609149651611845" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Marwar Magazine", "ID": "7150116439015536242" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Hotels", "ID": "6128211380558686135" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Food and Veg", "ID": "5950414540549677312" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Just Dial Advert", "ID": "5169982805847210392" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "Gas Bills", "ID": "4947357675607621026" },
{ "MediaName": "Forbes Magazine", "ID": "493167502853922783" },
{ "MediaName": "Airtel database", "ID": "4859221764782453222" },
{ "MediaName": "Air India", "ID": "4758982364467214887" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "Wall Paintings", "ID": "4575892115189784626" },
{ "MediaName": "Adorn Magazine", "ID": "4440799012128548776" },
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "Carry bag", "ID": "4241132276507527418" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Matrix Sim", "ID": "3685074749741549516" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Balance notification", "ID": "3544264526256135274" },
{ "MediaName": "Swagat Magazine", "ID": "3452111959966604070" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "Balloon", "ID": "2953218503025711474" },
{ "MediaName": "Ascend Magazine", "ID": "2574524286630645217" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Airport Lounge", "ID": "1963416614089551623" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "Electricity Bills", "ID": "1668142571179983745" },
{ "MediaName": "JetWings", "ID": "1639849752300259461" },
{ "MediaName": "Pharmaceis", "ID": "1564846823716469958" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Parents India Magazine", "ID": "1358811632092972398" },
{ "MediaName": "Clinics", "ID": "1354507205750911310" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
{ "MediaName": "Gujarat In-Bus", "ID": "125115585685873239" },
{ "MediaName": "Vanitha Hindi", "ID": "1208083938306088651" },
{ "MediaName": "Wi-Fi", "ID": "1073471835881881609" },
];

var chkKids = [
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Notebook adv", "ID": "5553819525051469750" },
{ "MediaName": "Apartment complex", "ID": "297997879410315496" },
];

var chkYouth = [
{ "MediaName": "Washroom", "ID": "995454972684769062" },
{ "MediaName": "IT Parks in Bangalore", "ID": "946574863618678590" },
{ "MediaName": "Wedding affair magazine", "ID": "9035587636001450089" },
{ "MediaName": "AC Cabs", "ID": "8791420450572582168" },
{ "MediaName": "Books & More", "ID": "8774721348934681502" },
{ "MediaName": "Salons", "ID": "8773871512683779681" },
{ "MediaName": "Airtel", "ID": "8741666778252557418" },
{ "MediaName": "Cable TV adv", "ID": "8711265575780464233" },
{ "MediaName": "Retail Mall", "ID": "8562180156039011307" },
{ "MediaName": "Credit and Debit Card", "ID": "829395102577529565" },
{ "MediaName": "Card Statement", "ID": "8168259764031499509" },
{ "MediaName": "Cafe Shops", "ID": "8097800048576181718" },
{ "MediaName": "Dongles", "ID": "7579777788822064489" },
{ "MediaName": "Local Cabs", "ID": "7338249430538459594" },
{ "MediaName": "Database Mktg", "ID": "7154905087056931408" },
{ "MediaName": "Offices", "ID": "697475398219196870" },
{ "MediaName": "Cinema Advert", "ID": "6835840106010226387" },
{ "MediaName": "Rail bandhu", "ID": "6796302992853423381" },
{ "MediaName": "Wedding vows magazine", "ID": "6676155827970981782" },
{ "MediaName": "OOH Screen", "ID": "6659007342992699287" },
{ "MediaName": "McDonalds", "ID": "6607346421050451433" },
{ "MediaName": "Piquor booth branding", "ID": "6499801949862003289" },
{ "MediaName": "Autorickshaw", "ID": "6429943535624137685" },
{ "MediaName": "Restaurant adv", "ID": "6326314257939608192" },
{ "MediaName": "Cyber Cafe", "ID": "60970344824342525" },
{ "MediaName": "In-flight magazine", "ID": "6093577785638860716" },
{ "MediaName": "Elevator", "ID": "5853297751677139490" },
{ "MediaName": "BEST Advert", "ID": "5739478363973875767" },
{ "MediaName": "Go Getter Magazine", "ID": "5677055204088742495" },
{ "MediaName": "Spicejet", "ID": "546179299328947824" },
{ "MediaName": "BEST Outer Panels", "ID": "540960270777315626" },
{ "MediaName": "Petrol Pump", "ID": "5256437589591293525" },
{ "MediaName": "Gyms", "ID": "5149173567383200073" },
{ "MediaName": "Local trains", "ID": "5099780763604968568" },
{ "MediaName": "IndiGo Magazine", "ID": "5049726684535421137" },
{ "MediaName": "AdRbt", "ID": "4736626222080268081" },
{ "MediaName": "Airlines related", "ID": "4709253594059041496"},
{ "MediaName": "IRCTC", "ID": "4392252113373651075" },
{ "MediaName": "Bluetooth Advert", "ID": "4245854650065129460" },
{ "MediaName": "The Smart Manager Mag", "ID": "4129736158291338656" },
{ "MediaName": "Dabbawala", "ID": "3903640283837354008" },
{ "MediaName": "Captcha", "ID": "3606324261879937625" },
{ "MediaName": "Telecom Bills", "ID": "3269797054799703896" },
{ "MediaName": "Vending Machine", "ID": "3244853354437149313" },
{ "MediaName": "BEST bus seat backs", "ID": "3101633472333808238" },
{ "MediaName": "Gold's Gym", "ID": "29615379294645750" },
{ "MediaName": "DTH Advertisment", "ID": "2358577532971727353" },
{ "MediaName": "Domino's", "ID": "2128621680638872442" },
{ "MediaName": "Prepaid Cards", "ID": "189437374731315857" },
{ "MediaName": "WAP Site", "ID": "1421954965889062316" },
{ "MediaName": "Amagi targeted TV", "ID": "1398142950042833037" },
{ "MediaName": "TCS Magazine", "ID": "1392265506425930577" },
{ "MediaName": "Shoppers Stop", "ID": "1255225958444588799" },
];


$(document).ready(function () {
    //Hide the Message "Sorry No media type ... "

    $('#Message').hide();
// Hide The tester Tag if on some other page except for the Home Page
    var Addr = window.location.href;
    if (Addr == 'http://www.themediaant.com/p/advertisers.html' || Addr == 'http://www.themediaant.com/p/media-owners.html' || Addr == 'http://www.themediaant.com/p/about-us.html' || Addr == 'http://www.themediaant.com/p/contact-us_11.html') {
        if (Addr.indexOf('search') == -1) {
            $('.tester').hide();

        }
    }
    else {

        $('.tester').show();
    }

    //Show Filters Only On the Home Page
    if (Addr == 'http://www.themediaant.com/') {
        $('#filters').show();
    }
    else {
        $('#filters').hide();
    }
   
    //find division which holds media filter
    var $ui = $('#ui_Media');
    //find division which holds Objective filter
    var $ui2 = $('#ui_Objective');
    //find division which holds Income filter
    var $ui3 = $('#ui_Income');
    //find division which holds Reach filter
    var $ui4 = $('#ui_Reach');
    //find division which holds Audience filter
    var $ui5 = $('#ui_TG');
    //Array to store the Applied Media Type Filters
    var filterOne = new Array();
    //Array to store the Applied Objective Type Filters
    var filterTwo = new Array();
    //Array to store the Applied Income Type Filters
    var filterThree = new Array();
    //Array to store the Applied Reach Filters
    var filterFour = new Array();
    //Array to store the Applied Audience Type Filters
    var filterFive = new Array();
    //Array to store the Final Media Types that is to be displayed after calculating the Intersections
    var finalArray = new Array();
    //Stores Sequence of applied filters
    var Seq = new Array();

    //////////////////////////////////Mouse Down Event... Please Do not Make Changes //////////////////////////////////
    $(document).mousedown(function (event) {
        var target = $(event.target);
        if (!target.parents().andSelf().hasClass('sb_DropDownFilters')) {
            $('.sb_DropDownFilters').hide();
        }
    });
    ////////////////////////////////End of Dont Make changes ////////////////////////////////////////////////////////



    ///////////////////////////////Click Event for the Media filter which displays the dropdown/////////////////////
    $ui.find('#btnMediaType').bind('click', function () {
        $ui.find('#upDownIncome')
          .andSelf().find('#UlMedia').show(150);

    });



    ///////////////////////////////Click Event for the Objective filter which displays the dropdown/////////////////////
    $ui2.find('#btnObjective').bind('click', function () {
        $ui2.find('#upDownSex').andSelf()
          .find('#UlObjective').show(150);
    });




    ///////////////////////////////Click Event for the Income filter which displays the dropdown/////////////////////
    $ui3.find('#btnIncome').bind('click', function () {
        $ui3.find('#upDownTown').andSelf()
          .find('#UlIncome')
          .show(150);

    });

    ///////////////////////////////Click Event for the Reach filter which displays the dropdown/////////////////////
    $ui4.find('#btnReach').bind('click', function () {
        $ui4.find('#upDownAge').andSelf()
          .find('#UlReach')
          .show(150);
    });

    ///////////////////////////////Click Event for the Audience(Target Group) filter which displays the dropdown/////////////////////
    $ui5.find('#btnTG').bind('click', function () {
        $ui5.find('#upDownTG').andSelf()
          .find('#UlTG')
          .show(150);
    });

    ////////////////////////////////Map the filterName to the JSON array Name///////////////////////////////////////////////////////
    function mapArray(filterType) {

        if (filterType == "chkOOHScreens")
            return chkOOHScreens;
        else if (filterType == "chkBillsTickets")
            return chkBillsTickets;
        else if (filterType == "chkInnovative")
            return chkInnovative;
        else if (filterType == "chkAmbient")
            return chkAmbient;
        else if (filterType == "chkOnline")
            return chkOnline;
        else if (filterType == "chkTransit")
            return chkTransit;
        else if (filterType == "chkAudio")
            return chkAudio;
        else if (filterType == "chkSampling")
            return chkSampling;
        else if (filterType == "chkTVCinema")
            return chkTVCinema;
        else if (filterType == "chkMobile")
            return chkMobile;
        else if (filterType == "chkMagazines")
            return chkMagazines;
        else if (filterType == "chkDatabaseMktg")
            return chkDatabaseMktg;
        else if (filterType == "chkSales")
            return chkSales;
        else if (filterType == "chkInduceTrials")
            return chkInduceTrials;
        else if (filterType == "chkBranding")
            return chkBranding;
        else if (filterType == "chkPhysicalSampling")
            return chkPhysicalSampling;
        else if (filterType == "chkLowerClass")
            return chkLowerClass;
        else if (filterType == "chkUpperMiddleClass")
            return chkUpperMiddleClass;
        else if (filterType == "chkMiddleClass")
            return chkMiddleClass;
        else if (filterType == "chkRich")
            return chkRich;
        else if (filterType == "chkUpperClass")
            return chkUpperClass;
        else if (filterType == "chkLowReach")
            return chkLowReach;
        else if (filterType == "chkMediumReach")
            return chkMediumReach;
        else if (filterType == "chkHighReach")
            return chkHighReach;
        else if (filterType == "chkProfessionals")
            return chkProfessionals;
        else if (filterType == "chkMale")
            return chkMale;
        else if (filterType == "chkFemale")
            return chkFemale;
        else if (filterType == "chkKids")
            return chkKids;
        else if (filterType == "chkYouth")
            return chkYouth;
        else if (filterType == "chkAdults")
            return chkAdults;
        else if (filterType == "chkHouseWives")
            return chkHouseWives;
        else if (filterType == "chkStudents")
            return chkStudents;



    }

    /////////////////////////////////////////Gets the Array with Distinct Media Types... (No Repeating of media types) //////////////////////////////////
    function GetUniqueArray(toFindArray) {
        var o = {}, i, l = toFindArray.length, r = [];
        for (i = 0; i < l; i += 1) o[toFindArray[i]] = toFindArray[i];
        for (i in o) r.push(o[i]);
        return r;
    }

    //////////////////////////////////////Creates the small box when any filter is selected /////////////////////////////////////////////////////////////
    function createLabel(title) {
        var div = document.createElement("div");
        div.setAttribute("id", title);
        var span = document.createElement("span");
        span.setAttribute("class", "crossimage");
        var label = document.createElement("input");
        //Assign different attributes to the element.
        label.setAttribute("type", "button");
        label.setAttribute("class", "smallBox");
        label.setAttribute("id", title);
        label.setAttribute("value", title);
        div.appendChild(label);
        div.appendChild(span);
        var foo = document.getElementById("selected_filter");
        foo.appendChild(div);
    }


    ////////////////////////////////////////// Hides all the media Types from the Page ///////////////////////////////////////////////////////////////////////
    function hideAllMedia() {
        for (var i = 0; i < All.length; i++) {
            var Media = '#' + All[i].ID;
            $(Media).hide();
        }
    }

    /////////////////////////////////////////Shows all the media Types on the page/ //////////////////////////////////////////////////////////////////////////
    function showAllMedia() {
        for (var i = 0; i < All.length; i++) {
            var Media = '#' + All[i].ID;
            $(Media).show();
        }
    }


    //////////////////////////////////// Handles the click  event on the small Box //////////////////////////////////////////////////////////////////////////
    $('.smallBox').live('click', function () {

        removeCheck($(this).val());
        removeLabel($(this));
        RemoveMediaFilter();
        RemoveIncomeFilter();
        RemoveObjectiveFilter();
        RemoveReachFilter();
        RemoveTGFilter();
    });

    ////////////////////////////////////////////Removes the Small Box from the Page //////////////////////////////////////////////////////////////////
    function removeLabel(title) {
        $(title).remove();
    }

    ///////////////////////////////////////////Removes the Box from the Page ///////////////////////////////////////////////////////////////////////
    function removeLabelByTitle(title) {

        var parent = document.getElementById('selected_filter');
        var toRemove = document.getElementById(title);
        parent.removeChild(toRemove);
    }

    /////////////////////////////////////////Remove The check from the CheckBox when Small box is removes ///////////////////////////////////////
    function removeCheck(title) {

        var chkbox = "#chk" + title;
        chkbox = chkbox.replace(' ', '');
        chkbox = chkbox.replace(' ', '');
        chkbox = chkbox.replace('/', '');

        if ($(chkbox).is(':checked')) {
            $(chkbox).attr('checked', false);
        }
    }

    ////////////////////////////////////////// Function which calculates the final Array of media types that is to be displayed ///////////////////////////////////////////////
    function findIntersection() {

        var tempoArray = new Array();
        if (Seq.length == 0) {

        }
        else if (Seq.length == 1) {
            tempoArray = returnArrayName(Seq[0]);
        }
        else {
            tempoArray = returnArrayName(Seq[0]);
            for (var i = 1; i < Seq.length; i++) {
                tempoArray = InterSection(tempoArray, returnArrayName(Seq[i]));
            }
        }

        hideAllMedia();

        if ($(":checkbox:checked").length == 0) {
            $('#Message').hide();
            showAllMedia();

        } else {
            if (tempoArray.length == 0) {
                $('#Message').show();
            }
            else {
                $('#Message').hide();
                for (var i = 0; i < tempoArray.length; i++) {
                    var media = "#" + tempoArray[i];
                    $(media).show();
                }
            }
        }

    }

    function InterSection(array1, array2) {
        var temp = new Array();
        for (var k = 0; k < array2.length; k++) {
            if (array1.indexOf(array2[k]) != -1) {
                temp.push(array2[k]);
            }
        }
        return temp;
    }

    function returnArrayName(ArrayName) {

        if (ArrayName == "filterOne")
            return filterOne;
        else if (ArrayName == "filterTwo")
            return filterTwo;
        else if (ArrayName == "filterThree")
            return filterThree;
        else if (ArrayName == "filterFour")
            return filterFour;
        else if (ArrayName == "filterFive")
            return filterFive;


    }


    function ApplyMediaFilter(filterType) {

        var tempArr = new Array();
        tempArr = mapArray(filterType);

        for (var i = 0; i < tempArr.length; i++) {
            filterOne.push(tempArr[i].ID);
        }
        var finalArray = new Array();
        filterOne = GetUniqueArray(filterOne);

    }

    function RemoveMediaFilter() {
        while (filterOne.length != 0) {
            filterOne.pop();
        }
        $(".chkboxMedia:checked").each(function () {
            ApplyMediaFilter($(this).attr('id'));
        }); checkSeqMedia();
        findIntersection();


    }


    $('.chkboxMedia').bind('click', function () {

        if ($(this).is(':checked')) {
            createLabel($(this).val());
            ApplyMediaFilter($(this).attr('id'));
        }
        else {
            removeLabelByTitle($(this).val());
            RemoveMediaFilter();
        }
        checkSeqMedia();
        findIntersection();

    });

    $('.lblMedia').bind('click', function () {

        if ($(this).prev().is(':checked')) {
            $(this).prev().attr('checked', false);
            removeLabelByTitle($(this)
            .prev().val());
            RemoveMediaFilter();
        }
        else {
            $(this).prev().attr('checked', true);
            ApplyMediaFilter($(this).prev().attr('id'));
            createLabel($(this).prev().val());
        }
        checkSeqMedia();
        findIntersection();
    });

    function checkSeqMedia() {
        if ($(".chkboxMedia:checked").length != 0) {
            if (Seq.indexOf('filterOne') == -1) {
                Seq.push('filterOne');
            }
        }
        else {
            if (Seq.indexOf('filterOne') != -1) {
                var index = Seq.indexOf('filterOne');
                Seq.splice(index, 1);
            }
        }


    }


  
    function ApplyObjectiveFilter(filterType) {

        var tempArr = new Array();
        tempArr = mapArray(filterType);

        for (var i = 0; i < tempArr.length; i++) {
            filterTwo.push(tempArr[i].ID);
        }
        var finalArray = new Array();
        filterTwo = GetUniqueArray(filterTwo);

    }

    function RemoveObjectiveFilter() {

        while (filterTwo.length != 0) {
            filterTwo.pop();
        }
        $(".chkboxObjective:checked").each(function () {
            ApplyObjectiveFilter($(this).attr('id'));
        }); checkSeqObjective();

        findIntersection();

    }

    $('.chkboxObjective').bind('click', function () {

        if ($(this).is(':checked')) {
            createLabel($(this).val());
            ApplyObjectiveFilter($(this).attr('id'));
        }
        else {
            removeLabelByTitle($(this).val());
            RemoveObjectiveFilter();
        }
        checkSeqObjective();
        findIntersection();
    });

    $('.lblObjective').bind('click', function () {

        if ($(this).prev().is(':checked')) {
            $(this).prev().attr('checked', false);
            removeLabelByTitle($(this).prev().val());
            RemoveObjectiveFilter();
        }
        else {
            $(this).prev().attr('checked', true);
            ApplyObjectiveFilter($(this).prev().attr('id'));
            createLabel($(this).prev().val());
        }
        checkSeqObjective();
        findIntersection();

    });

    function checkSeqObjective() {
        if ($(".chkboxObjective:checked").length != 0) {
            if (Seq.indexOf('filterTwo') == -1) {
                Seq.push('filterTwo');
            }
        }
        else {
            if (Seq.indexOf('filterTwo') != -1) {
                var index = Seq.indexOf('filterTwo');
                Seq.splice(index, 1);
            }
        }


    }


    function ApplyIncomeFilter(filterType) {

        var tempArr = new Array();
        tempArr = mapArray(filterType);

        for (var i = 0; i < tempArr.length; i++) {
            filterThree.push(tempArr[i].ID);
        }
        var finalArray = new Array();
        filterThree = GetUniqueArray(filterThree);

    }

    function RemoveIncomeFilter() {

        while (filterThree.length != 0) {
            filterThree.pop();
        }
        $(".chkboxIncome:checked").each(function () {
            ApplyIncomeFilter($(this).attr('id'));
        }); checkSeqIncome();
        findIntersection();

    }

    $('.chkboxIncome').bind('click', function () {

        if ($(this).is(':checked')) {
            createLabel($(this).val());
            ApplyIncomeFilter($(this).attr('id'));
        }
        else {
            removeLabelByTitle($(this).val());
            RemoveIncomeFilter();
        }
        checkSeqIncome()
        findIntersection();
    });

    $('.lblIncome').bind('click', function () {

        if ($(this).prev().is(':checked')) {
            $(this).prev().attr('checked', false);
            removeLabelByTitle($(this).prev().val());
            RemoveIncomeFilter();
        }
        else {
            $(this).prev().attr('checked', true);
            ApplyIncomeFilter($(this).prev().attr('id'));
            createLabel($(this).prev().val());
        }
        checkSeqIncome()
        findIntersection();
    });

    function checkSeqIncome() {
        if ($(".chkboxIncome:checked").length != 0) {
            if (Seq.indexOf('filterThree') == -1) {
                Seq.push('filterThree');
            }
        }
        else {
            if (Seq.indexOf('filterThree') != -1) {
                var index = Seq.indexOf('filterThree');
                Seq.splice(index, 1);
            }
        }


    }

    function ApplyReachFilter(filterType) {

        var tempArr = new Array();
        tempArr = mapArray(filterType);

        for (var i = 0; i < tempArr.length; i++) {
            filterFour.push(tempArr[i].ID);
        }
        var finalArray = new Array();
        filterFour = GetUniqueArray(filterFour);

    }


    function RemoveReachFilter() {

        while (filterFour.length != 0) {
            filterFour.pop();
        }
        $(".chkboxReach:checked").each(function () {
            ApplyReachFilter($(this).attr('id'));
        }); checkSeqReach();
        findIntersection();

    }

    $('.chkboxReach').bind('click', function () {
        if ($(this).is(':checked')) {
            createLabel($(this).val());
            ApplyReachFilter($(this).attr('id'));
        }
        else {
            removeLabelByTitle($(this).val());
            RemoveReachFilter();
        }
        checkSeqReach()
        findIntersection();
    });

    $('.lblReach').bind('click', function () {

        if ($(this).prev().is(':checked')) {
            $(this).prev().attr('checked', false);
            removeLabelByTitle($(this).prev().val());
            RemoveReachFilter();
        }
        else {
            $(this).prev().attr('checked', true);
            ApplyReachFilter($(this).prev().attr('id'));
            createLabel($(this).prev().val());
        }
        checkSeqReach()
        findIntersection();
    });

    function checkSeqReach() {
        if ($(".chkboxReach:checked").length != 0) {
            if (Seq.indexOf('filterFour') == -1) {
                Seq.push('filterFour');
            }
        }
        else {
            if (Seq.indexOf('filterFour') != -1) {
                var index = Seq.indexOf('filterFour');
                Seq.splice(index, 1);
            }
        }


    }

    function ApplyTGFilter(filterType) {

        var tempArr = new Array();
        tempArr = mapArray(filterType);

        for (var i = 0; i < tempArr.length; i++) {
            filterFive.push(tempArr[i].ID);
        }
        var finalArray = new Array();
        filterFive = GetUniqueArray(filterFive);

    }

    function RemoveTGFilter() {

        while (filterFive.length != 0) {
            filterFive.pop();
        }
        $(".chkboxTG:checked").each(function () {
            ApplyTGFilter($(this).attr('id'));
        }); checkSeqTG();
        findIntersection();

    }

    $('.chkboxTG').bind('click', function () {

        if ($(this).is(':checked')) {
            createLabel($(this).val());
            ApplyTGFilter($(this).attr('id'));
        }
        else {
            removeLabelByTitle($(this).val());
            RemoveTGFilter();
        }
        checkSeqTG()
        findIntersection();
    });

    /////////////////////////////////// Label Click of audience filter
    $('.lblTG').bind('click', function () {

        if ($(this).prev().is(':checked')) {
            $(this).prev().attr('checked', false);
            removeLabelByTitle($(this).prev().val());
            RemoveTGFilter();
        }
        else {
            $(this).prev().attr('checked', true);
            ApplyTGFilter($(this).prev().attr('id'));
            createLabel($(this).prev().val());
        }
        checkSeqTG()
        findIntersection();
    });

    
    //////////////////////////////////Adds/Remove Audience Filter to the sequence/////////////////////
    function checkSeqTG() {
        if ($(".chkboxTG:checked").length != 0) {
            if (Seq.indexOf('filterFive') == -1) {
                Seq.push('filterFive');
            }
        }
        else {
            if (Seq.indexOf('filterFive') != -1) {
                var index = Seq.indexOf('filterFive');
                Seq.splice(index, 1);
            }
        }


    }

});
